]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
xdndHandler: pass actor-relative coordinates to handleDragOver
authorStefano Facchini <stefano.facchini@gmail.com>
Sat, 11 Feb 2012 10:07:04 +0000 (11:07 +0100)
committerStefano Facchini <stefano.facchini@gmail.com>
Sun, 12 Feb 2012 19:21:56 +0000 (20:21 +0100)
This is more reasonable and consistent with what is done in dnd.js.

https://bugzilla.gnome.org/show_bug.cgi?id=669887

js/ui/xdndHandler.js

index dede07e1a845bc172a7ee7569bb947934c05705e..8a24bc2d6475bcfc6ebdbfa24320a70a4f5d95a4 100644 (file)
@@ -113,10 +113,11 @@ const XdndHandler = new Lang.Class({
 
         while (pickedActor) {
                 if (pickedActor._delegate && pickedActor._delegate.handleDragOver) {
+                    let [r, targX, targY] = pickedActor.transform_stage_point(x, y);
                     let result = pickedActor._delegate.handleDragOver(this,
                                                                       dragEvent.dragActor,
-                                                                      x,
-                                                                      y,
+                                                                      targX,
+                                                                      targY,
                                                                       global.get_current_time());
                     if (result != DND.DragMotionResult.CONTINUE)
                         return;